package com.atguigu.core.feign.config;

import feign.Logger;
import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignConfig {
    @Bean
    public Retryer retryer() {
        return Retryer.NEVER_RETRY;

        // 间隔100毫秒。等待1秒。1次投送 + 重试2次 共3次
//        return new Retryer.Default(100, 1, 3);
    }


    @Bean
    public Logger.Level logLevel() {
        return Logger.Level.FULL;
    }


}
